import request from '@/utils/request'

export function getQuestionList(param) {
  return request({
    url: '/questionInfo/list',
    method: 'post',
    params: param
  })
}

export function saveQuestion(param) {
  return request({
    url: '/questionInfo/saveQuestion',
    method: 'post',
    params: param
  })
}

export function alterQuestion(data) {
  return request({
    header: {
      'Content-Type': 'application/json'
    },
    url: '/questionInfo/alterQuestion',
    method: 'post',
    data
  })
}

export function batchExpire(data) {
  return request({
    header: {
      'Content-Type': 'application/json'
    },
    url: '/r-template-questions-list/expire',
    method: 'post',
    data
  })
}

// export function removeQuestion(data) {
//   return request({
//     header: {
//       'Content-Type': 'application/json'
//     },
//     url: '/r-template-questions-list/remove',
//     method: 'post',
//     data
//   })
// }
